import 'package:flutter/material.dart';
import 'package:spree/pages/games/games_num_button.dart';
class GameTable extends StatefulWidget {
  GameTable({Key? key}) : super(key: key);

  @override
  State<GameTable> createState() => _GameTableState();
}

class _GameTableState extends State<GameTable> {
  @override
  Widget build(BuildContext context) {
    return  Table(
                        border: TableBorder(
                          horizontalInside:
                              BorderSide(color: Color(0xFF8364DC)),
                        ),
                        defaultVerticalAlignment:
                            TableCellVerticalAlignment.middle,
                        defaultColumnWidth: const FixedColumnWidth(100),
                        children: [
                          TableRow(children: [
                            Padding(
                              padding: EdgeInsets.only(bottom: 10),
                              child: Text("Bet ID",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(bottom: 10),
                              child: Text("Game ID",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(bottom: 10),
                              child: Text("Time",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                             Padding(
                              padding: EdgeInsets.only(bottom: 10),
                              child: Text("Bet",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                             Padding(
                              padding: EdgeInsets.only(bottom: 10),
                              child: Text("Bet ID",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                             Padding(
                              padding: EdgeInsets.only(bottom: 10),
                              child: Text("Cash Out",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                          ]),
                          TableRow(children: [
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text(
                                "2131313333322",
                                style: TextStyle(color: _whiteColor()),
                              ),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("Sabag1337",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("18:22",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("R\$ 23.00",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: GameNumButton(number: '1.2x'),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("R\$ 23.00",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                          ]),
                          TableRow(children: [
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text(
                                "2131313333322",
                                style: TextStyle(color: _whiteColor()),
                              ),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("Sabag1337",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("18:22",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("R\$ 23.00",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: GameNumButton(number: '1.2x'),
                            ),
                            Padding(
                              padding: EdgeInsets.only(
                                  right: 10, top: 10, bottom: 10),
                              child: Text("R\$ 23.00",
                                  style: TextStyle(color: _whiteColor())),
                            ),
                          ]),
                        ],
                      );
  }
    // 白色
  Color _whiteColor() {
    return Color(0xFFFFFFFF);
  }
}